home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 52 / Amiga Format AFCD52 (Issue 136, May 2000).iso / -serious- / workbench / directoryopus4 / dopus4_src / dopusrt / dopusrtasm.asm < prev    next >
Assembly Source File  |  2000-03-11  |  2KB  |  56 lines

  1. ; Directory Opus 4
  2. ; Original GPL release version 4.12
  3. ; Copyright 1993-2000 Jonathan Potter
  4. ; This program is free software; you can redistribute it and/or
  5. ; modify it under the terms of the GNU General Public License
  6. ; as published by the Free Software Foundation; either version 2
  7. ; of the License, or (at your option) any later version.
  8. ; This program is distributed in the hope that it will be useful,
  9. ; but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11. ; GNU General Public License for more details.
  12. ; You should have received a copy of the GNU General Public License
  13. ; along with this program; if not, write to the Free Software
  14. ; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  15. ; All users of Directory Opus 4 (including versions distributed
  16. ; under the GPL) are entitled to upgrade to the latest version of
  17. ; Directory Opus version 5 at a reduced price. Please see
  18. ; http://www.gpsoft.com.au for more information.
  19. ; The release of Directory Opus 4 under the GPL in NO WAY affects
  20. ; the existing commercial status of Directory Opus 5.
  21.  
  22. _LVOSignal equ -$144
  23.  
  24.     XDEF @InputHandler
  25.     XDEF _InputHandler
  26.  
  27.     section code
  28.  
  29. _InputHandler:
  30. @InputHandler:
  31.     cmp.b #2,4(a0)
  32.     bne.s skiphandler
  33.     cmp.w #$68,6(a0)
  34.     bne.s notdown
  35.     moveq.l #1,d0
  36.     bra.s sendsignal
  37. notdown:
  38.     cmp.w #$e8,6(a0)
  39.     bne.s skiphandler
  40.     moveq.l #2,d0
  41. sendsignal:
  42.     move.l 4,a6
  43.     move.l a0,-(sp)
  44.     jsr _LVOSignal(a6)
  45.     move.l (sp)+,a0
  46. skiphandler:
  47.     move.l a0,d0
  48.     rts
  49.  
  50.     end
  51.